package com.demo.ribbon.client.custom.config;

import com.demo.ribbon.client.custom.annotations.ExcudeAnnotation;
import com.netflix.loadbalancer.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@ExcudeAnnotation
@Configuration
public class HiRibbonConfig {

    @Bean
    public IRule ribbonRule() {
        return new BestAvailableRule();
    }

    @Bean
    public IPing ribbonPing() {
        return new PingUrl();
    }

}
